<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="../common.jsp"%>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title></title>
</head>

<body>
	<div class="place">
	    <span>位置：</span>
	    <ul class="placeul">
	    <li><a href="#">患者管理</a></li>
	    <li><a href="#">血液标本</a></li>
	    </ul>
	 </div>
<!-- 添加用户form    此节点内部的内容会在弹出框内显示,默认隐藏此节点   -->
    <div id="blood_content" class="hidden" style="display:none;">
      <form id="bloodForm" class="form-horizontal" method="post" action="">
        <div class="row">
      		<div class="control-group span8">
            	<label class="control-label">病历号:</label>
            	<div class="controls">
              		<input type="text" class="input-normal control-text" name="mrn" id="blood_mrn">
              		<div class="validate_color"></div>
            	</div>
          	</div>
          	<div class="control-group span10">
            	<label class="control-label">提取数量:</label>
            	<div class="controls">
              		<input type="text" class="input-normal control-text" name="amount" id="blood_amount" >
              		<span class="validate_color" >*</span>
            	</div>
          	</div>
        </div>
        <div class="row" >
          <div class="control-group span8">
            <label class="control-label">提取时间:</label>
            <div class="controls">
            	<select id="blood_type" name="type">
			 	</select>
			 	<span class="validate_color">*</span>
            </div>
          </div>
          <div class="control-group span8"> 
            <label class="control-label">血液种类:</label>
             <div class="controls">
            	<select id="blood_g_type" name="g_type">
			 	</select>
			 	<span class="validate_color">*</span>
            </div>
          </div>
          <div class="control-group span8">
            	<label class="control-label">CYF入库前:</label>
            	<div class="controls">
              		<input type="text" class="input-small control-text" name="cyf_0" id="cyf_0">
              		<span class="validate_color"></span>
            	</div>
          </div>
          <div class="control-group span8">
            	<label class="control-label">CEA入库前:</label>
            	<div class="controls">
              		<input type="text" class="input-small control-text" name="cea_0" id="cea_0">
              		<span class="validate_color"></span>
            	</div>
          </div>
          <div class="control-group span8">
            	<label class="control-label">CYF入库6个月:</label>
            	<div class="controls">
              		<input type="text" class="input-small control-text" name="cyf_6" id="cyf_6">
              		<span class="validate_color"></span>
            	</div>
          </div>
          <div class="control-group span8">
            	<label class="control-label">CEA入库6个月:</label>
            	<div class="controls">
              		<input type="text" class="input-small control-text" name="cea_6" id="cea_6">
              		<span class="validate_color"></span>
            	</div>
          </div>
          <div class="control-group span8">
            	<label class="control-label">CYF入库10个月:</label>
            	<div class="controls">
              		<input type="text" class="input-small control-text" name="cyf_10" id="cyf_10">
              		<span class="validate_color"></span>
            	</div>
          </div>
          
          <div class="control-group span8">
            	<label class="control-label">CEA入库10个月:</label>
            	<div class="controls">
              		<input type="text" class="input-small control-text" name="cea_10" id="cea_10">
              		<span class="validate_color"></span>
            	</div>
          </div>
          <div class="control-group span8">
            	<label class="control-label">淋巴细胞入库前:</label>
            	<div class="controls">
              		<input type="text" class="input-small control-text" name="active_0" id="active_0">
              		<span class="validate_color"></span>
            	</div>
          </div>
          <div class="control-group span10">
          	 <label class="control-label">日期:</label>
          	 <div class="controls">
 				<input type="text" id="blood_g_date" name="g_date_String"/>
             	<span class="validate_color">*</span>
            </div>
          </div>
          <div class="control-group span8">
            	<label class="control-label">淋巴细胞6个月:</label>
            	<div class="controls">
              		<input type="text" class="input-small control-text" name="active_6" id="active_6">
              		<span class="validate_color"></span>
            	</div>
          </div>
          <div class="control-group span8">
            <label class="control-label">描述:</label>
            <div class="controls controls">
			   		<textarea class="input-norml" name="memo" id="blood_memo" ></textarea>
            </div>
          </div>
          <div class="control-group span8">
            	<label class="control-label">淋巴细胞10个月:</label>
            	<div class="controls">
              		<input type="text" class="input-small control-text" name="active_10" id="active_10">
              		<span class="validate_color"></span>
            	</div>
          </div>
          <input type="text" style="display: none;" id="blood_id" name="id"/>
        </div>
      </form>
    </div>

    <div class="rightinfo" >
    
    <div class="tools">
    
    	<ul class="toolbar">
         <li class="pmsncontrol" id="add_Blood"><span><img src="${path}/images/t01.png" /></span>添加</li>
         <li class="pmsncontrol" onclick="del_blood('bloodSelectCbx')"><span><img src="${path}/images/t03.png" ></span>删除</li>       
        </ul>
       	
       	<ul class="toolbar1">
    	 <li onclick="showBloodPageDataList(1)"><span><img src="${path}/images/t04.png" /></span>查询</li>
        </ul>
       	<ul class="toolbar2">
       	 <li>
       	 		<label>病历号：</label>
       	 		<input type="text" id="blood_search_mrn" value="${chaxun}" style="margin-top:3px;">
       	 </li>
       	 <li class="li_left" style="padding-right: 0px;">
				<label>时间段：</label>
				<input type="text" id="blood_startDate" value="${startDate}" style="width: 180px;margin-top:3px;"/>
		 </li>
		 <li >
				<label>-</label>
				<input type="text" id="blood_endDate" value="${endDate}" style="width: 180px;margin-top:3px;"/>
		 </li>
       	</ul>
        
        
    
    </div>
    <div><span style="background-color:#DBE6D4; ">注：CYFRAZ1-1、癌胚抗原，淋巴细胞活性分别为入库前、入库6个月，入库10个月的值，单位（ng/mL）</span></div>
    <table class="tablelist" id="bloodTable">
    	<thead>
    	<tr>
        <th class="cbx"><input name="" type="checkbox" value="" id="bloodSelectAll" onclick="selectAllCheck('bloodSelectAll','bloodSelectCbx')"/></th>
        <th>病历号</th>
        <th>姓名</th>
		<th>提取时间</th>
        <th>血液种类</th>
        <th>数量（mL）</th>
		<th>CYFRAZ1-1</th>
		<th>癌胚抗原</th>
		<th>淋巴细胞活性</th>
        <th>描述</th>
        <th>日期</th>
        <th class="operate" style="width:232px;">操作</th>
        </tr>
        </thead>
  	 	<c:if test="${!empty bloodPageInfo}">
  	 		<c:forEach items="${bloodBeanList }" var="bloodList">
  	 			<tr>
			        <td><input name="bloodSelectCbx" id='blood_${bloodList.id}' type="checkbox" value="" onclick="cbxCheck('bloodSelectAll','bloodSelectCbx');"/></td>
			        <td title="${bloodList.mrn}">${bloodList.mrn}</td>
			        <td title="${bloodList.p_name}"><script type="text/javascript">document.write(getSubstr('${bloodList.p_name}',10))</script></td>
					<td title="${bloodList.type }">${bloodList.type }</td>
					<td title="${bloodList.g_type }">${bloodList.g_type }</td>
					<td title="${bloodList.amount }">${bloodList.amount }</td>
					<td title="${bloodList.cyfString }">${bloodList.cyfString }</td>
					<td title="${bloodList.ceaString }">${bloodList.ceaString }</td>
					<td title="${bloodList.activeString }">${bloodList.activeString }</td>
					<td title="${bloodList.memo }"><script type="text/javascript">document.write(getSubstr('${bloodList.memo}',5))</script></td>
					<td title="${bloodList.g_dateString }">${bloodList.g_dateString }</td>
			        <td>
			        	<ul class="tabletoolbar"  id='blood_operate${bloodList.id}'>
			        		<li class="pmsncontrol" onclick="bloodEdit('${bloodList.id}')"><span><img src="${path}/images/table_t01.png"></span>编辑</li>
			        		<li class="pmsncontrol" onclick="messageAlert(4,'你确定要删除吗？',function(){choose_open,deleteBlood(${bloodList.id})},1)"><span><img src="${path}/images/table_t02.png"></span>删除</li>
			        	</ul>	
      				</td>
       			 </tr> 
  	 		</c:forEach>
  	 	</c:if>
        </tbody>
    </table>
	
    <div id="blood_box">
    </div>
    
    </div>
    <script type="text/javascript">
	$(function(){
		bloodManagerInit();
		if(window.parent.currentUserPmsn == normalLimit){
			pmsnControl();
		}
		getDivPage("blood",'${bloodPageInfo}',showBloodPageDataList);
	});
	</script>
</body>
</html>